#ifndef __TLB_H__
#define __TLB_H__

#include "common.h"

#define TLB_SIZE 64

typedef struct {
	uint32_t tag, page_num;
	bool valid_value;
} TLB;

TLB tlb[TLB_SIZE];

void init_tlb();

void write_tlb(uint32_t lnaddr, uint32_t hwaddr);

int read_tlb(uint32_t addr);

#endif